'use strict';
exports.main = async (param, context) => {
	// param 为客户端上传的参数
	console.log('param : ', param)

	let res = 'test ok';
	res = await uniCloud.database()
		.collection('test_01')
		.add({
			u_name: 'test-002'
		});

	console.info('res:', JSON.stringify(res))

	// 返回数据给客户端
	return {
		res,
		param
	};
};